package com.xyz.frame.security.admin.adapter;

import com.xyz.frame.security.common.adapter.DefaultAuthConfigAdapter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import java.util.Arrays;
import java.util.List;

/**
 * 
 * @date 2022/3/28 14:57
 */
@Component
public class ResourceServerAdapter extends DefaultAuthConfigAdapter {

    @Value("${security.exclude-paths}")
    private String excludePaths;
    
    @Override
    public List<String> excludePathPatterns() {
        return Arrays.asList(excludePaths.split(","));
    }
}
